package com.util;


import javax.servlet.http.HttpSession;

import com.service.manage.imp.SessionListener;

public class ForceLogout {

	public static void forceLogout(String username,HttpSession usession){
		
		if(SessionListener.user_session.get( username ) != null)  
        {  
			
            HttpSession session = SessionListener.user_session.get( username );  
            	
            if(!session.getId().equals(usession.getId())){
            	
            	 SessionListener.user_session.remove( username );  
                 session.invalidate();
     	}
            }
           
	}
}
